package com.jingdianjichi.auth.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jingdianjichi.auth.infra.basic.entity.AuthRolePermission;
import com.jingdianjichi.auth.infra.basic.service.AuthRolePermissionService;
import com.jingdianjichi.auth.infra.basic.mapper.AuthRolePermissionMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
* @author 20432
* @description 针对表【auth_role_permission(角色权限表)】的数据库操作Service实现
* @createDate 2025-10-20 13:32:34
*/
@Service
public class AuthRolePermissionServiceImpl extends ServiceImpl<AuthRolePermissionMapper, AuthRolePermission>
    implements AuthRolePermissionService{

    @Resource
    private AuthRolePermissionMapper authRolePermissionMapper;
    @Override
    public int batchInsert(List<AuthRolePermission> permissionList) {
        int count = authRolePermissionMapper.saveBatch(permissionList);
        return count;
    }

    @Override
    public List<AuthRolePermission> queryByCondition(AuthRolePermission authRolePermission) {
        return authRolePermissionMapper.queryByCondition(authRolePermission);
    }
}




